<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="generator" content="HTML Tidy for Windows (vers 14 February 2006), see www.w3.org">
    <title>Trainings</title>
    <link rel="stylesheet" href="css/style.css" type="text/css">
</head>

<body>

<div id="wrapper">
<%@ include file="/header.jsp" %>

<div id = "body">
	<div id="bleft">
		<h1>Trainings List</h1>
		<hr id="noscreen"/></br>
		<c:if test="${sessionScope.sessionUsrTyp == 'ADM'}">
			<a href="trainings/add.html" class="links">Add Training</a>
		</c:if>
		
		<c:if test="${!empty trainings}">
			<table class="table">
					<th>Topic</th>
					<th>Description</th>
					<th>Schedule</th>
					<th>Time Start</th>
					<th>Time Finish</th>
					<th>Venue</th>
					<th>Status</th>
				<c:if test="${sessionScope.sessionUsrTyp == 'ADM'}">
				</c:if>	
				<c:forEach items="${trainings}" var="training">
					<tr>
						<td><a href="trainings/topic.html?trainingId=${training.trainingId}"><c:out value="${training.trainingTopic}"/></a></td>
						<td><c:out value="${training.trainingDesc}"/></td>
						<td><c:out value="${fn:substring(training.trainingDate,0,11)}"/></td>
						<!--<td><c:out value="${training.trainingDate}"/></td>-->
						<td><c:out value="${training.timeStart}"/></td>
						<td><c:out value="${training.timeFinish}"/></td>
						<td><c:out value="${training.location}"/></td>
						<td><c:out value="${training.status}"/></td>
					</tr>

				</c:forEach>
			</table>
		</c:if>
	</div>
	<%@include file="/sidemenu.jsp" %>
</div>


</div> <!-- wrapper div -->
<div id="footer">
      <div class="container">
        <div class="copyright">
        </div>
      </div>
</div>	   
</body>
</html>